import request from '@/utils/axios-req'
const SERVERURL = import.meta.env.VITE_APP_BASE_MIAN_URL
// const SERVERURL = "http://localhost:8000"
// ### 用户统计
export const getDashboardUsers = () => {
  return request({
    url: `${SERVERURL}/dashboard/users`,
    reqLoading: false,
    method: 'get'
  })
}

// ### 上传文件统计
export const getDashboardUploads = () => {
  return request({
    url: `${SERVERURL}/dashboard/uploads`,
    reqLoading: false,
    method: 'get'
  })
}

// ### 下载文件统计
export const getDashboardDownloads = () => {
  return request({
    url: `${SERVERURL}/dashboard/downloads`,
    reqLoading: false,
    method: 'get'
  })
}

// ### 转换文件统计
export const getDashboardConverts = () => {
  return request({
    url: `${SERVERURL}/dashboard/converts`,
    reqLoading: false,
    method: 'get'
  })
}

// ### AI预测统计
export const getDashboardPredicts = () => {
  return request({
    url: `${SERVERURL}/dashboard/predicts`,
    reqLoading: false,
    method: 'get'
  })
}


// ### 用户统计
// GET http://127.0.0.1:8000/dashboard/users
// Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJzdXBlcm1hbjAxIiwiZXhwIjoxNzE1MTg5NjA4fQ.KIYvJAW5HJKvPlOLaEyeYAtAwZZnM66vQ-Ulwfxu7Vw

// ### 上传文件统计
// GET http://127.0.0.1:8000/dashboard/uploads
// Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJzdXBlcm1hbjAxIiwiZXhwIjoxNzE1MTg5NjA4fQ.KIYvJAW5HJKvPlOLaEyeYAtAwZZnM66vQ-Ulwfxu7Vw

// ### 下载文件统计
// GET http://127.0.0.1:8000/dashboard/downloads
// Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJzdXBlcm1hbjAxIiwiZXhwIjoxNzE1MTg5NjA4fQ.KIYvJAW5HJKvPlOLaEyeYAtAwZZnM66vQ-Ulwfxu7Vw

// ### 转换文件统计
// GET http://127.0.0.1:8000/dashboard/converts
// Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJzdXBlcm1hbjAxIiwiZXhwIjoxNzE1MTg5NjA4fQ.KIYvJAW5HJKvPlOLaEyeYAtAwZZnM66vQ-Ulwfxu7Vw

// ### AI预测统计
// GET http://127.0.0.1:8000/dashboard/predicts
// Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJzdXBlcm1hbjAxIiwiZXhwIjoxNzE1MTg5NjA4fQ.KIYvJAW5HJKvPlOLaEyeYAtAwZZnM66vQ-Ulwfxu7Vw
